<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>主菜单</TITLE>
<LINK href="../../css/style.css" type="text/css" rel="stylesheet">
<LINK href="../../css/menu.css" type="text/css" rel="stylesheet">

<SCRIPT src="../../js/ccorrect_btn.js"></SCRIPT>

<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="../../css/pheader.css" type=text/css rel=stylesheet>
</HEAD>
<BODY class=panel onload=init();>
<DIV class=sub_tabs id=sub_tabs>
<UL id=sub_tabs_ul>
	<LI><A class="active" id="link_1" title="全部菜单"
		href="javascript:view_menu(1);"><SPAN>全部</SPAN></A>
</UL>
<IMG id="expand_link" title="展开/折叠菜单" onClick="menu_expand()"
	src="../../img/menu/green_plus.gif"></DIV>
<DIV id="body"><!-- OA树开始-->
<UL id="menu">
	<!-- 用户信息管理 -->
	<LI class=L1><A id=m01 href="javascript:c('m01');"><SPAN><IMG
		src="../../img/menu/mytable.gif" align="absmiddle"> 用户信息管理</SPAN></A>
	<UL class=U1 id=m01d style="DISPLAY: none">

		<LI class=L22><A id=f180
			href="../../UserManage?action=getUserInfo" target="main"><SPAN><IMG
			src="../../img/menu/@mail.gif" align=absMiddle> 个人资料</SPAN></A>
		<LI class=L22><A id=f181 href="../../UserManage?action=udpass"
			target="main"><SPAN><IMG src="../../img/menu/@sms.gif"
			align=absMiddle> 修改帐号</SPAN></A> <c:if test="${User.power == '办公系统管理员'}">
			<LI class=L22><A id=f184 href="../../UserManage?action=userList"
				target="main"><SPAN><IMG src="../../img/menu/fax.gif"
				align=absMiddle> 用户管理</SPAN></A>
		</c:if>
	</UL>

	<!-- 用户信息管理 结束 -->
	<LI class=L1><A id=m05 href="javascript:c('m05');"><SPAN><IMG
		src="../../img/menu/erp.gif" align=absMiddle> 考勤管理</SPAN></A>
	<UL class=U1 id=m05d style="DISPLAY: none">
		<LI class=L22><A id=f24
			href="../attendance/kaoqinShouce/shouce.jsp" target="main"><SPAN><IMG
			src="../../img/menu/notify.gif" align=absMiddle> 考勤管理手册</SPAN></A>
		<LI class=L22><A id=f196 href="../attendance/duty/duty.jsp"
			target="main"><SPAN><IMG src="../../img/menu/notify.gif"
			align=absMiddle> 工作排班及时间</SPAN></A>
		<LI class=L22><A id=f105 href="../attendance/table/table.jsp"
			target="main"><SPAN><IMG src="../../img/menu/news.gif"
			align=absMiddle> 考勤报表</SPAN></A>
		<LI class=L22><A id=f119
			href="../attendance/jiaban/overtime.html" target="main"><SPAN><IMG
			src="../../img/menu/vote.gif" align=absMiddle> 加班管理</SPAN></A>
		<LI class=L22><A id=f80
			href="../attendance/kaoqinShenpi/shenpi.html" target="main"><SPAN><IMG
			src="../../img/menu/calendar.gif" align=absMiddle> 请假出差审批</SPAN></A></LI>
	</UL>
	</LI>
	<LI class=L1><A id=m10 href="javascript:c('m10');"><SPAN><IMG
		src="../../img/menu/hrms.gif" align=absMiddle> 个人办公</SPAN></A>
	<UL class=U1 id=m10d style="DISPLAY: none">
		<LI class=L22><A id=f27 href="../office/richeng/richeng.html"
			target="main"><SPAN><IMG src="../../img/menu/@hrms.gif"
			align=absMiddle> 日程安排</SPAN></A>
		<LI class=L22><A id=f26 href="../office/Contacts/contacts.html"
			target="main"><SPAN><IMG
			src="../../img/menu/attendance.gif" align=absMiddle> 通讯录</SPAN></A>
		<LI class=L22><A id=f55 href="../office/attendance/kaoqin.html"
			target="main"><SPAN><IMG src="../../img/menu/@salary.gif"
			align=absMiddle> 个人考勤</SPAN></A>
		<LI class=L22><A id=f122 href="../office/log/log.html"
			target="main"><SPAN><IMG src="../../img/menu/@score.gif"
			align=absMiddle> 工作日志</SPAN></A>
		<LI class=L22><A id=f122 href="../office/plan/plan.html"
			target="main"><SPAN><IMG src="../../img/menu/@score.gif"
			align=absMiddle> 工作计划</SPAN></A> <c:if test="${User.power == '办公系统管理员'}">
			<LI class=L22><A id=f27
				href="<%=basePath %>ClassManageServlet?action=show" target="main"><SPAN><IMG
				src="../../img/menu/@hrms.gif" align=absMiddle> 班级管理</SPAN></A>
		</c:if>
	</ul>
	</LI>



	<!-- 公告管理 -->
	<LI class=L1><A id=m13 href="javascript:c('m13');"><SPAN><IMG
		src="../../img/menu/info_query.gif" align="absMiddle"> 公告管理</SPAN></A>
	<UL class=U1 id=m13d style="DISPLAY: none">

		<LI class=L22><A id=f45
			href="<%=basePath %>page/notice/addNotice.jsp" target="main"><SPAN><IMG
			src="../../img/menu/game.gif" align=absMiddle> 发布公告</SPAN></A>
		<LI class=L22><A id=f82
			href="<%=basePath %>page/notice/noticeManage.jsp" target="main"><SPAN><IMG
			src="../../img/menu/calendar2.gif" align=absMiddle> 公告管理</SPAN></A></LI>
	</UL>






	<!-- 前台管理 --> <c:if test="${User.power == '办公系统管理员'}">

		<LI class=L1><A id=m21 href="javascript:c('m21');"><SPAN><IMG
			src="../../img/menu/sale_manage.gif" align=absMiddle>前台管理</SPAN></A>
		<UL class=U1 id=m21d style="DISPLAY: none">

			<LI class=L21><A id=f59 href="javascript:c('f59');"><SPAN><IMG
				src="../../img/menu/1score.gif" align=absMiddle> 关于我们</SPAN></A>
			<UL id=f59d style="DISPLAY: none">
				<LI class=L3><A id=f30
					href="<%=basePath %>page/aboutus/addAboutus.jsp" target="main"><SPAN><IMG
					src="../../img/menu/histroy.gif" align=absMiddle>添加关于我们</SPAN></A>
				<LI class=L3><A id=f31
					href="<%=basePath %>AboutUsServlet?action=show" target="main"><SPAN><IMG
					src="../../img/menu/source.gif" align=absMiddle>管理关于我们</SPAN></A></LI>
			</UL>
			<LI class=L21><A id=f60 href="javascript:c('f60');"><SPAN><IMG
				src="../../img/menu/world_time.gif" align=absMiddle> 业务介绍</SPAN></A>
			<UL id=f60d style="DISPLAY: none">
				<LI class=L3><A id=f30
					href="<%=basePath %>page/index/trainStrength/addTrainStrength.jsp"
					target="main"><SPAN><IMG src="../../img/menu/system.gif"
					align=absMiddle>添加业务介绍</SPAN></A>
				<LI class=L3><A id=f31
					href="<%=basePath %>TrainStrengthServlet?action=show" target="main"><SPAN><IMG
					src="../../img/menu/t9.gif" align=absMiddle>管理业务介绍</SPAN></A></LI>
			</UL>
			<LI class=L21><A id=f68 href="javascript:c('f68');"><SPAN><IMG
				src="../../img/menu/roll_manage.gif" align=absMiddle> 公司简介管理</SPAN></A>
			<UL id=f68d style="DISPLAY: none">
				<LI class=L3><A id=f38
					href="/ztrq/coreCourse?action=admin_list" target="main"><SPAN><IMG
					src="../../img/menu/system.gif" align=absMiddle>公司简介列表</SPAN></A>
				<LI class=L3><A id=f39
					href="<%=basePath %>page/kecheng/addkecheng.jsp" target="main"><SPAN><IMG
					src="../../img/menu/calendar2.gif" align=absMiddle>添加公司简介</SPAN></A></LI>
			</UL>
			<LI class=L21><A id=f78 href="javascript:c('f78');"><SPAN><IMG
				src="../../img/menu/info_query.gif" align=absMiddle> 师资团队</SPAN></A>
			<UL id=f78d style="DISPLAY: none">
				<LI class=L3><A id=f79
					href="<%=basePath %>TeacherTeamServlet?action=list" target="main"><SPAN><IMG
					src="../../img/menu/system.gif" align=absMiddle>师资列表</SPAN></A>
				<LI class=L3><A id=f80
					href="<%=basePath %>page/teacher/addTeacher.jsp" target="main"><SPAN><IMG
					src="../../img/menu/calendar2.gif" align=absMiddle>添加师资</SPAN></A></LI>
			</UL>
			<LI class=L21><A id=f61 href="javascript:c('f61');"><SPAN><IMG
				src="../../img/menu/1score.gif" align=absMiddle> 首页管理</SPAN></A>
			<UL id=f61d style="DISPLAY: none">
				<LI class=L3><A id=f30
					href="<%=basePath %>HotNewsServlet?action=show" target="main"><SPAN><IMG
					src="../../img/menu/@book.gif" align=absMiddle>行业资讯</SPAN></A>
				<LI class=L3><A id=f30
					href="<%=basePath %>DynamicNewsServlet?action=show" target="main"><SPAN><IMG
					src="../../img/menu/histroy.gif" align=absMiddle>最新动态</SPAN></A>
				<LI class=L3><A id=f31
					href="<%=basePath %>RollPicServlet?action=show" target="main"><SPAN><IMG
					src="../../img/menu/@system.gif" align=absMiddle>滚动图片</SPAN></A></LI>
			</UL>
			<!-- 首页管理结束 -->
			<LI class=L22><A id=f452
				href="<%=basePath %>ConsultationServlet?action=list" target="main"><SPAN><IMG
				src="../../img/menu/system.gif" align=absMiddle>咨询留言</SPAN></A>
			<LI class=L21><A id=f320 href="javascript:c('f320');"><SPAN><IMG
				src="../../img/menu/workflow.gif" align=absMiddle> 招生问答管理</SPAN></A>
			<UL class=U1 id=f320d style="DISPLAY: none">
				<LI class=L3><A id=f321 href="/ztrq/enroll?action=admin_list"
					target="main"><SPAN><IMG src="../../img/menu/system.gif"
					align=absMiddle> 招生问答列表</SPAN></A>
				<LI class=L3><A id=f322
					href="<%=basePath %>page/zhaosheng/addwenda.jsp" target="main"><SPAN><IMG
					src="../../img/menu/system.gif" align=absMiddle>添加招生问答</SPAN></A></LI>
			</UL>

			</LI>
		</UL>
	</c:if> <!-- 前台管理结束 -->
	<LI class=L1><A id=m31 href="javascript:c('m31');"><SPAN><IMG
		src="../../img/menu/system.gif" align=absMiddle> 招聘信息</SPAN></A>
	<UL class=U1 id=m31d style="DISPLAY: none">

		<LI class=L22><A id=f82
			href="<%=basePath %>page/jiuye/personaladdjiuye.jsp" target="main"><SPAN><IMG
			src="../../img/menu/system.gif" align=absMiddle>添加招聘信息</SPAN></A>
		<LI class=L22><A id=f82
			href="<%=basePath %>jobInfo?action=person_jobInfo" target="main"><SPAN><IMG
			src="../../img/menu/system.gif" align=absMiddle>招聘信息</SPAN></A></LI>
	</UL>
</DIV>
<DIV id=bottom><SPAN id=bottom_left></SPAN><SPAN id=bottom_center></SPAN><SPAN
	id=bottom_right></SPAN></DIV>
<DIV id=menu_code_1 style="DISPLAY: none"></DIV>
<DIV id=menu_code_2 style="DISPLAY: none"></DIV>
<DIV id=menu_code_3 style="DISPLAY: none"></DIV>
<DIV id=menu_code_4 style="DISPLAY: none"></DIV>
<DIV id=menu_code_5 style="DISPLAY: none"></DIV>
<SCRIPT src="../../js/utility.js"></SCRIPT>

<SCRIPT language=JavaScript>
window.onresize=function()
{
   if(!parent.$('frame1')) return;
   var rows = parent.$('frame1').rows.split(",");
   if(rows.length < 2 || rows[1]!="*") return;
   $("bottom_center").style.width = "0px";

   if(document.body.clientHeight > $("sub_tabs").clientHeight+$("bottom").clientHeight)
      $("body").style.height=(document.body.clientHeight-$("sub_tabs").clientHeight-$("bottom").clientHeight)+"px";

   var widthTotal = parseInt($("bottom").clientWidth);
   var widthLeft = parseInt($("bottom_left").clientWidth);
   var widthRight = parseInt($("bottom_right").clientWidth);
   if(!isNaN(widthTotal) && !isNaN(widthLeft) && !isNaN(widthRight))
   {
      $("bottom_center").style.width = widthTotal - widthLeft - widthRight + "px";
   }
};
function init()
{
   window.onresize();
}

var sub_menu="1";
function view_menu(id)
{
   set_current("");
   if($("menu").innerHTML.toLowerCase().indexOf("<li") >= 0)
      $("menu_code_"+sub_menu).innerText=$("menu").innerHTML;

   if($("menu_code_"+id).innerText=="" || isUndefined($("menu_code_"+id).innerText))
   {
      $("menu").innerHTML="<img src='/images/loading.gif' align='absMiddle'> 加载中，请稍候……";
      if(id==2) args="MENU_TYPE=SHORTCUT&OA_SUB_WINDOW=0&MENU_DISPLAY=";
      else if(id==3) args="MENU_TYPE=OA&OA_SUB_WINDOW=0";
      else if(id==4) args="MENU_TYPE=FAV&OA_SUB_WINDOW=0";
      else if(id==5) args="MENU_TYPE=FIS&OA_SUB_WINDOW=0";
      else args="OA_SUB_WINDOW=0";
      _get("menu_code.php", args, update_menu, true);
   }
   else
   {
      $("menu").innerHTML=$("menu_code_"+id).innerText;
   }
   
   if($('link_'+sub_menu))
      $('link_'+sub_menu).className="";
   
   $('link_'+id).className="active";
   sub_menu=id;
   setCookie("MENU_UI_1", id);
   if(id == 5)
   {
      openURL("/t9apps/common/frame.jsp");
   }
}
function update_menu(req)
{
   if(req.status == 200)
   {
      if(req.responseText=="")
         $("menu").innerHTML="<div style='padding:10px;'>无可访问菜单</div>";
      else
      {
         $("menu").innerHTML=req.responseText;
         if(sub_menu == 2) c('mMENU_SHORTCUT');
      }
   }
   else
   {
      $("menu").innerHTML="<div style='padding:10px;'>错误："+req.status+"</div>";
   }
}

var cur_id="",cur_expand="";
var flag=0,sflag=0;

//-------- 菜单点击事件 -------
function c(id)
{
  var targetid,targetelement;
  var strbuf;

  var el=$(id);
  if(!el)
     return;
  //-------- 如果点击了展开或收缩按钮---------
  targetid=el.id+"d";
  targetelement=$(targetid);
  var expandUL=$(cur_expand+"d");
  var expandLink=$(cur_expand);

  if (targetelement.style.display=="none")
  {
     if(expandUL && expandLink && el.id.substr(0,1)=="m")
     {
        expandLink.className="";
        expandUL.style.display='none';
     }
     if(el.id.substr(0,1)=="m")
        cur_expand=el.id;
     el.className="active";
     targetelement.style.display='';

     menu_flag=0;
     $("expand_link").src="../../img/menu/green_minus.gif";
  }
  else
  {
     el.className="";
     targetelement.style.display="none";

     menu_flag=1;
     $("expand_link").src="../../img/menu/green_plus.gif";
     var links=document.getElementsByTagName("A");
     for (i=0; i<links.length; i++)
     {
       el=links[i];
       if(el.parentNode.className.toUpperCase()=="L1" && el.className=="active" && el.id.substr(0,1)=="m")
       {
          menu_flag=0;
          $("expand_link").src="../../img/menu/green_minus.gif";
          break;
       }
     }
  }
}

//-------- 打开windows程序 -------
function winexe(NAME,PROG)
{
   URL="/general/winexe?PROG="+PROG+"&NAME="+NAME;
   window.open(URL,"winexe","height=100,width=350,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top=0,left=0,resizable=no");}

function set_current(id)
{
   cur_link=$("f"+cur_id)
   if(cur_link)
      cur_link.className="";
   cur_link=$("f"+id);
   if(cur_link)
      cur_link.className="active";
   cur_id=id;
}

function openURL(URL, open_window)
{
  if(open_window==1 && 1)
  {
    mytop=(screen.availHeight-500)/2-30;
    myleft=(screen.availWidth-780)/2;
    window.open(URL,"","height=500,width=780,status=0,toolbar=no,menubar=yes,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
    window.close();
  }
  else
  {
    parent.openURL(URL,0,1);
  }
}
</SCRIPT>
</BODY>
</HTML>
